home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / games2 / rotise12.zip / PORTAB.H < prev    next >
C/C++ Source or Header  |  1992-04-03  |  1KB  |  75 lines

  1. /* portab.h - portability definitions */
  2.  
  3. #ifndef    H_PORTAB            /* For multiple inclusions */
  4. #define    H_PORTAB
  5.  
  6. #ifdef __ANSI__
  7. # ifndef USE_PROTOS
  8. #  define USE_PROTOS
  9. # endif
  10. #else
  11. #undef USE_PROTOS
  12. #define void int
  13. #endif
  14.  
  15. #ifndef    TRUE
  16. #define    TRUE    1
  17. #define    FALSE    0
  18. #endif    /* TRUE */
  19.  
  20. #ifndef    NULL
  21. #define    NULL    ((char *)0)
  22. #endif    /* NULL */
  23.  
  24. #ifndef    NUL
  25. #define    NUL    '\0'
  26. #endif    /* NUL */
  27.  
  28. typedef    char                BYTE;                /* 8 Bits */
  29. typedef     unsigned char    UBYTE;
  30. typedef    int                BOOL;
  31. typedef    short                WORD;                /* 16 Bits */
  32. typedef     unsigned short    UWORD;
  33. typedef    long                LONG;                /* 32 bits */
  34. typedef  unsigned long    ULONG;
  35.  
  36. /* Prioritized registers -- adjust for the machine */
  37.  
  38. #ifndef    AREG1
  39. #define    DREG1        register
  40. #define    DREG2        register
  41. #define    DREG3
  42. #define    DREG4
  43. #define    DREG5
  44. #define    DREG6
  45.  
  46. #define    AREG1        register
  47. #define    AREG2        register
  48. #define    AREG3
  49. #define    AREG4
  50. #define    AREG5
  51. #define    AREG6
  52. #endif
  53.  
  54. #ifdef  USE_PROTOS
  55.  
  56. #define PROTO( def )    def
  57. #define NOARGLIST       ( void )
  58. #define ARGLIST( args ) (
  59. #define NFARG( def )    def,
  60. #define FARG( def )     def )
  61.  
  62. #else
  63.  
  64. #define PROTO( def )    ()
  65. #define NOARGLIST       ()
  66. #define ARGLIST( args ) args
  67. #define NFARG( def )    def;
  68. #define FARG( def )     def;
  69.  
  70. #endif
  71.  
  72. #endif    /* H_PORTAB */
  73.  
  74.  
  75.